3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Victim { private $money = 100; public function __toString() { return (string) $this->money; } function assault(Victim $victim) { $victim->money = 0; } } $victim = new Victim; $offender = new Victim; $offender->assault($victim); print (string)$victim;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0130.00316.63
8.3.50.0110.00922.11
8.3.40.0110.00319.00
8.3.30.0040.01119.21
8.3.20.0030.01020.18
8.3.10.0090.00621.92
8.3.00.0000.00922.64
8.2.180.0070.00716.32
8.2.170.0040.01122.96
8.2.160.0100.00320.98
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.01117.34
8.2.110.0050.00522.24
8.2.100.0040.00818.22
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0050.00318.22
8.2.30.0000.00717.98
8.2.20.0070.00017.67
8.2.10.0040.00417.74
8.2.00.0040.00417.59
8.1.280.0070.00725.92
8.1.270.0060.00322.08
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00323.79
8.1.230.0000.01019.10
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.34
8.1.190.0080.00017.41
8.1.180.0050.00318.82
8.1.170.0040.00418.59
8.1.160.0000.00721.93
8.1.150.0040.00418.62
8.1.140.0000.00717.35
8.1.130.0030.00817.70
8.1.120.0040.00417.43
8.1.110.0040.00417.39
8.1.100.0000.00717.35
8.1.90.0070.00017.46
8.1.80.0000.00817.50
8.1.70.0030.00317.44
8.1.60.0000.00817.50
8.1.50.0030.00517.49
8.1.40.0080.00017.49
8.1.30.0060.00317.62
8.1.20.0050.00217.67
8.1.10.0000.00817.53
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0040.00417.05
8.0.280.0070.00018.50
8.0.270.0040.00417.24
8.0.260.0040.00416.89
8.0.250.0000.00717.03
8.0.240.0000.00716.94
8.0.230.0070.00016.88
8.0.220.0000.00816.93
8.0.210.0000.00716.88
8.0.200.0000.00816.99
8.0.190.0000.00816.90
8.0.180.0040.00416.96
8.0.170.0050.00316.96
8.0.160.0000.00717.01
8.0.150.0080.00016.93
8.0.140.0070.00016.87
8.0.130.0030.00313.36
8.0.120.0040.00416.88
8.0.110.0040.00416.86
8.0.100.0040.00416.81
8.0.90.0030.00516.89
8.0.80.0030.01216.95
8.0.70.0000.00816.80
8.0.60.0050.00216.95
8.0.50.0050.00216.79
8.0.30.0100.01217.23
8.0.20.0070.01217.40
8.0.10.0080.00017.02
8.0.00.0050.01316.82
7.4.330.0000.00515.00
7.4.320.0000.00616.59
7.4.300.0060.00016.52
7.4.290.0030.00316.57
7.4.280.0000.00716.48
7.4.270.0030.00316.54
7.4.260.0000.01116.46
7.4.250.0000.00716.45
7.4.240.0020.00616.56
7.4.230.0070.00016.48
7.4.220.0140.00516.70
7.4.210.0100.00716.52
7.4.200.0050.00216.67
7.4.190.0000.00716.74
7.4.160.0060.00916.59
7.4.150.0150.00617.40
7.4.140.0110.00817.86
7.4.130.0110.00716.54
7.4.120.0080.01216.48
7.4.110.0110.00716.46
7.4.100.0080.01416.62
7.4.90.0070.01016.65
7.4.80.0110.00619.39
7.4.70.0120.00616.64
7.4.60.0130.00616.65
7.4.50.0050.00016.40
7.4.40.0050.00722.77
7.4.30.0130.00316.52
7.4.00.0060.00914.64
7.3.330.0050.00013.30
7.3.320.0000.00513.05
7.3.310.0000.00716.14
7.3.300.0000.00716.18
7.3.290.0090.00616.29
7.3.280.0140.00616.28
7.3.270.0140.00317.40
7.3.260.0140.00316.58
7.3.250.0090.00816.37
7.3.240.0190.00416.35
7.3.230.0080.00916.46
7.3.210.0040.01516.42
7.3.200.0090.00919.39
7.3.190.0130.00616.46
7.3.180.0090.00616.52
7.3.170.0030.01516.52
7.3.160.0070.01016.42
7.3.120.0100.00314.75
7.3.10.0090.00316.84
7.3.00.0090.00416.81
7.2.330.0090.00916.36
7.2.320.0110.00616.54
7.2.310.0060.01016.81
7.2.300.0090.01416.88
7.2.290.0090.00916.44
7.2.130.0040.00817.07
7.2.120.0000.01316.76
7.2.110.0090.00316.76
7.2.100.0070.00716.97
7.2.90.0060.00617.07
7.2.80.0000.01117.05
7.2.70.0000.00916.98
7.2.60.0040.01116.96
7.2.50.0090.00016.56
7.2.40.0030.00916.57
7.2.30.0060.00917.20
7.2.20.0000.00916.90
7.2.10.0070.00416.62
7.2.00.0090.00318.14
7.1.250.0000.01015.69
7.1.100.0070.01117.92
7.1.70.0000.00717.27
7.1.60.0120.01219.82
7.1.50.0100.01316.95
7.1.00.0000.07722.46
7.0.200.0070.00416.61
7.0.140.0030.07322.09
7.0.60.0070.07320.04
7.0.50.0070.05717.86
7.0.40.0100.06720.20
7.0.30.0300.07720.20
7.0.20.0230.05320.19
7.0.10.0270.05020.20
7.0.00.0170.07320.08
5.6.280.0030.06721.05
5.6.210.0030.08720.63
5.6.200.0100.04318.20
5.6.190.0070.09320.47
5.6.180.3100.05020.33
5.6.170.0370.07720.50
5.6.160.0130.07720.54
5.6.150.0030.05318.11
5.6.140.0070.07718.15
5.6.130.0100.08318.17
5.6.120.0100.07321.02
5.6.110.0100.03721.05
5.6.100.0000.04321.09
5.6.90.0070.08020.99
5.6.80.0130.04020.44
5.6.70.0370.06720.35
5.5.350.0100.05320.45
5.5.340.0070.03718.09
5.5.330.0070.05020.21
5.5.320.0330.06320.21
5.5.310.0330.06020.28
5.5.300.0030.07717.98
5.5.290.0130.07717.92
5.5.280.0170.06320.81
5.5.270.0130.04720.80
5.5.260.0130.08720.77
5.5.250.0000.04320.77
5.5.240.0000.05720.08
5.4.450.0570.06019.55
5.4.440.0600.06019.49
5.4.430.0600.05319.19
5.4.420.0130.05019.30
5.4.410.0400.05319.30
5.4.400.0900.00018.51
5.4.390.1700.00018.79
5.4.380.0200.05318.57
5.4.370.0230.05318.84
5.4.360.0300.05018.75
5.4.350.0330.05718.63
5.4.340.0370.04318.59
5.4.320.0040.04012.50
5.4.310.0090.04612.50
5.4.300.0080.03412.50
5.4.290.0080.04612.50
5.4.280.0120.03412.40
5.4.270.0070.04212.39
5.4.260.0170.04718.79
5.4.250.0130.07318.89
5.4.240.0130.05018.95
5.4.230.0130.04718.93
5.4.220.0070.05318.89
5.4.210.0070.05318.74
5.4.200.0170.04018.64
5.4.190.0070.05318.79
5.4.180.0070.05318.96
5.4.170.0100.05018.96
5.4.160.0170.04318.94
5.4.150.0000.06018.75
5.4.140.0030.05316.39
5.4.130.0100.04316.54
5.4.120.0130.04716.40
5.4.110.0070.05316.55
5.4.100.0070.05316.61
5.4.90.0070.04716.42
5.4.80.0130.06716.38
5.4.70.0170.04316.49
5.4.60.0000.05716.59
5.4.50.0100.04716.46
5.4.40.0030.07716.68
5.4.30.0100.04716.50
5.4.20.0030.05016.38
5.4.10.0070.05016.52
5.4.00.0100.05015.84
5.3.290.0070.03912.80
5.3.280.0030.06014.43
5.3.270.0100.05314.77
5.3.260.0130.05014.69
5.3.250.0070.06714.51
5.3.240.0070.06014.69
5.3.230.0070.05014.59
5.3.220.0030.05714.67
5.3.210.0100.05014.64
5.3.200.0100.07314.65
5.3.190.0030.07714.79
5.3.180.0030.05314.54
5.3.170.0200.05714.40
5.3.160.0030.06714.63
5.3.150.0100.07714.65
5.3.140.0130.05314.77
5.3.130.0130.04314.38
5.3.120.0100.05014.56
5.3.110.0130.04714.53
5.3.100.0100.06714.13
5.3.90.0070.04714.20
5.3.80.0030.05314.20
5.3.70.0100.06314.00
5.3.60.0030.05014.22
5.3.50.0130.04713.91
5.3.40.0100.04713.93
5.3.30.0170.03713.97
5.3.20.0030.05013.69
5.3.10.0100.05013.63
5.3.00.0100.05313.66
5.2.170.0100.03711.25
5.2.160.0100.03311.20
5.2.150.0070.04010.98
5.2.140.0000.04711.23
5.2.130.0070.04011.19
5.2.120.0070.03711.19
5.2.110.0030.04011.28
5.2.100.0130.03011.06
5.2.90.0030.04011.08
5.2.80.0070.04011.27
5.2.70.0100.03711.16
5.2.60.0030.06011.05
5.2.50.0030.04710.92
5.2.40.0100.03311.21
5.2.30.0100.05311.07
5.2.20.0100.03310.86
5.2.10.0130.04710.95
5.2.00.0100.05310.71
5.1.60.0070.0309.92
5.1.50.0070.0439.97
5.1.40.0070.0339.96
5.1.30.0030.04710.34
5.1.20.0070.03710.36
5.1.10.0030.03710.14
5.1.00.0000.03710.18
5.0.50.0000.0338.52
5.0.40.0070.0378.41
5.0.30.0030.0408.38
5.0.20.0070.0308.43
5.0.10.0070.0278.23
5.0.00.0030.0438.35
4.4.90.0030.0206.89
4.4.80.0030.0206.89
4.4.70.0070.0176.89
4.4.60.0030.0206.89
4.4.50.0030.0236.89
4.4.40.0070.0436.89
4.4.30.0030.0236.89
4.4.20.0070.0276.89
4.4.10.0000.0236.89
4.4.00.0030.0306.89
4.3.110.0000.0376.89
4.3.100.0070.0176.89
4.3.90.0000.0236.89
4.3.80.0070.0336.89
4.3.70.0000.0206.89
4.3.60.0030.0206.89
4.3.50.0000.0276.89
4.3.40.0000.0336.89
4.3.30.0070.0136.89
4.3.20.0100.0206.89
4.3.10.0000.0236.89
4.3.00.0130.0209.31

preferences:
44.32 ms | 401 KiB | 5 Q