3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $foo = 1; function as_string() { assert('$this->foo == 1'); } function as_expr() { assert($this->foo == 1); } } $foo = new foo(); $foo->as_expr(); $foo->as_string();

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.0090.01216.23
8.3.50.0260.00621.09
8.3.40.0140.00418.89
8.3.30.0130.00418.47
8.3.20.0000.00720.34
8.3.10.0000.00721.76
8.3.00.0000.00820.39
8.2.180.0130.01016.50
8.2.170.0090.00622.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0030.01024.66
8.2.130.0030.00626.16
8.2.120.0060.00317.63
8.2.110.0000.01021.11
8.2.100.0140.00017.78
8.2.90.0080.00018.03
8.2.80.0060.00617.97
8.2.70.0040.00417.50
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0050.00519.42
8.2.30.0070.00022.37
8.2.20.0000.00717.79
8.2.10.0000.00717.88
8.2.00.0050.00317.93
8.1.280.0150.00025.92
8.1.270.0060.01023.97
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.57
8.1.230.0080.00420.90
8.1.220.0040.00417.74
8.1.210.0030.00618.96
8.1.200.0030.00617.23
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0080.00018.57
8.1.160.0040.00421.93
8.1.150.0040.00418.89
8.1.140.0060.00317.46
8.1.130.0040.00417.68
8.1.120.0040.00417.48
8.1.110.0040.00417.48
8.1.100.0080.00017.47
8.1.90.0070.00017.50
8.1.80.0070.00017.40
8.1.70.0040.00417.36
8.1.60.0040.00417.51
8.1.50.0040.00417.49
8.1.40.0080.00017.42
8.1.30.0030.00617.52
8.1.20.0040.00417.63
8.1.10.0040.00417.47
8.1.00.0000.00817.51
8.0.300.0070.00019.90
8.0.290.0030.00616.75
8.0.280.0040.00418.38
8.0.270.0000.00717.14
8.0.260.0040.00417.16
8.0.250.0040.00416.86
8.0.240.0040.00416.86
8.0.230.0000.00716.86
8.0.220.0000.00716.76
8.0.210.0000.00716.93
8.0.200.0070.00016.97
8.0.190.0030.00916.84
8.0.180.0030.00516.93
8.0.170.0040.00416.84
8.0.160.0040.00316.87
8.0.150.0070.00016.87
8.0.140.0050.00316.91
8.0.130.0040.00413.30
8.0.120.0030.00516.81
8.0.110.0070.00016.98
8.0.100.0000.00816.95
8.0.90.0030.00517.00
8.0.80.0120.00616.88
8.0.70.0070.00016.82
8.0.60.0050.00316.91
8.0.50.0040.00416.95
8.0.30.0040.01517.00
8.0.20.0120.00617.40
8.0.10.0040.00416.91
8.0.00.0120.00716.83
7.4.330.0050.00015.09
7.4.320.0000.00616.50
7.4.300.0030.00316.44
7.4.290.0040.00416.60
7.4.280.0040.00816.61
7.4.270.0030.00316.50
7.4.260.0000.00916.40
7.4.250.0040.00416.46
7.4.240.0070.00016.52
7.4.230.0000.00816.59
7.4.220.0100.00716.41
7.4.210.0100.00716.71
7.4.200.0000.00716.72
7.4.160.0070.01416.49
7.4.150.0100.00717.40
7.4.140.0080.01317.86
7.4.130.0080.01016.45
7.4.120.0090.01016.45
7.4.110.0100.01316.60
7.4.100.0100.00716.47
7.4.90.0100.00716.62
7.4.80.0130.01119.39
7.4.70.0150.00316.50
7.4.60.0150.00416.44
7.4.50.0030.00616.67
7.4.40.0070.01116.48
7.4.30.0100.00716.61
7.4.00.0040.00814.95
7.3.330.0030.00313.15
7.3.320.0050.00013.34
7.3.310.0080.00016.39
7.3.300.0070.00016.44
7.3.290.0090.00616.36
7.3.280.0040.01116.40
7.3.270.0110.00617.40
7.3.260.0150.00316.40
7.3.250.0090.01016.48
7.3.240.0000.01716.33
7.3.230.0080.00816.39
7.3.210.0100.00716.25
7.3.200.0100.00616.43
7.3.190.0040.01316.41
7.3.180.0040.01216.59
7.3.170.0070.01416.44
7.3.160.0090.01516.38
7.2.330.0030.01316.66
7.2.320.0030.01316.50
7.2.310.0160.00616.76
7.2.300.0100.01016.38
7.2.290.0130.00416.65
7.2.60.0000.01317.03
7.2.00.0080.00819.49
7.1.200.0070.01315.02
7.1.100.0090.00618.01
7.1.70.0050.00317.14
7.1.60.0070.01719.14
7.1.50.0130.02034.42
7.1.00.0100.06722.47
7.0.200.0040.00416.39
7.0.60.0130.08019.93
7.0.50.0200.06317.86
7.0.40.0070.04720.26
7.0.30.0230.08320.30
7.0.20.0330.07720.24
7.0.10.0030.06020.25
7.0.00.0030.08720.24
5.6.280.0070.06721.15
5.6.210.0000.07320.51
5.6.200.0030.04018.24
5.6.190.0170.06320.62
5.6.180.0200.08320.61
5.6.170.0270.08720.54
5.6.160.0130.08020.52
5.6.150.0000.06018.15
5.6.140.0130.08018.25
5.6.130.0000.08718.17
5.6.120.0030.08720.88
5.6.110.0100.07721.18
5.6.100.0100.03320.99
5.6.90.0170.06020.98
5.6.80.0100.06020.43
5.5.350.0030.08320.36
5.5.340.0170.07718.02
5.5.330.0200.04020.43
5.5.320.0070.04320.52
5.5.310.0130.04720.31
5.5.300.0030.05717.93
5.5.290.0070.06318.03
5.5.280.0030.04720.88
5.5.270.0100.04720.75
5.5.260.0100.07320.87
5.5.250.0070.06020.67
5.5.240.0230.08020.27
5.4.450.0970.05019.36
5.4.440.0800.06719.62
5.4.430.1170.06319.61
5.4.420.1000.04719.47
5.4.410.0970.05319.50
5.4.400.0870.05319.03
5.4.390.0870.06319.32
5.4.380.0830.05319.38
5.4.370.0970.04318.98
5.4.360.0900.05019.32
5.4.350.0800.05719.22
5.4.340.0900.04719.22
5.4.320.0970.06019.29
5.4.310.0870.05019.40
5.4.300.0830.06019.36
5.4.290.0900.05319.28
5.4.280.0470.05019.38
5.4.270.0200.04319.28
5.4.260.0030.06719.28
5.4.250.0170.04719.21
5.4.240.1030.04319.27
5.4.230.0870.05719.22
5.4.220.0970.04718.86
5.4.210.0870.05319.11
5.4.200.0900.04718.83
5.4.190.0830.05719.13
5.4.180.1030.04319.21
5.4.170.0730.06318.85
5.4.160.0900.04719.10
5.4.150.0770.06319.23
5.4.140.0830.05316.41
5.4.130.0870.05016.53
5.4.120.1000.04316.52
5.4.110.0970.04716.43
5.4.100.0970.04016.62
5.4.90.0870.04716.57
5.4.80.0870.04716.63
5.4.70.0030.03316.35
5.4.60.0100.06716.54
5.4.50.0030.03716.38
5.4.40.0170.04716.34
5.4.30.0400.06016.51
5.4.20.0170.04716.25

preferences:
49.41 ms | 401 KiB | 5 Q