3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $bar; public function test() { echo $this->bar; } } $foo = new Foo(); $foo->test();

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.0110.00416.75
8.3.50.0030.01016.40
8.3.40.0070.01418.79
8.3.30.0100.00718.70
8.3.20.0040.00421.86
8.3.10.0090.00021.89
8.3.00.0040.00421.60
8.2.180.0110.01118.65
8.2.170.0140.00022.96
8.2.160.0030.01020.43
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0000.00920.56
8.2.100.0120.00017.72
8.2.90.0000.00817.63
8.2.80.0030.00518.57
8.2.70.0050.00317.36
8.2.60.0040.00417.50
8.2.50.0030.00518.05
8.2.40.0000.00817.89
8.2.30.0050.00219.39
8.2.20.0040.00417.86
8.2.10.0050.00219.23
8.2.00.0000.00819.28
8.1.280.0130.01025.92
8.1.270.0030.00522.18
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00719.44
8.1.230.0040.00720.93
8.1.220.0040.00418.57
8.1.210.0050.00318.77
8.1.200.0030.01017.23
8.1.190.0060.00317.23
8.1.180.0100.00018.10
8.1.170.0000.00817.62
8.1.160.0050.00318.86
8.1.150.0030.00618.82
8.1.140.0030.00320.69
8.1.130.0030.00520.30
8.1.120.0070.00017.40
8.1.110.0000.00817.21
8.1.100.0000.00817.27
8.1.90.0000.00717.27
8.1.80.0050.00317.36
8.1.70.0080.00017.40
8.1.60.0040.00417.60
8.1.50.0000.00817.51
8.1.40.0050.00317.53
8.1.30.0080.00017.55
8.1.20.0040.00417.64
8.1.10.0050.00317.56
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0030.00318.36
8.0.270.0030.00318.01
8.0.260.0030.00319.91
8.0.250.0060.00317.00
8.0.240.0070.00316.81
8.0.230.0030.00316.96
8.0.220.0000.00716.89
8.0.210.0030.00616.92
8.0.200.0000.00716.99
8.0.190.0050.00216.94
8.0.180.0040.00416.90
8.0.170.0080.00016.82
8.0.160.0040.00416.96
8.0.150.0000.00916.79
8.0.140.0040.00416.77
8.0.130.0000.00613.40
8.0.120.0070.00016.76
8.0.110.0040.00416.91
8.0.100.0000.00817.00
8.0.90.0030.00616.91
8.0.80.0060.00916.83
8.0.70.0070.00016.86
8.0.60.0050.00216.87
8.0.50.0000.00716.66
8.0.30.0120.00616.96
8.0.20.0100.01017.46
8.0.10.0000.00716.95
8.0.00.0200.00017.01
7.4.330.0050.00016.84
7.4.320.0000.00616.43
7.4.300.0030.00316.61
7.4.290.0000.00716.50
7.4.280.0060.00316.59
7.4.270.0000.00716.52
7.4.260.0030.00313.28
7.4.250.0000.00816.53
7.4.240.0020.00516.49
7.4.230.0070.00016.70
7.4.220.0040.00416.50
7.4.210.0040.01016.57
7.4.200.0070.00016.38
7.4.130.0090.01316.54
7.4.120.0100.00716.62
7.4.110.0090.01316.63
7.4.100.0080.00916.44
7.4.90.0030.01616.59
7.4.80.0060.01619.39
7.4.70.0130.00316.39
7.4.60.0100.01016.47
7.4.50.0050.00716.32
7.4.40.0130.00316.45
7.4.20.0090.00816.52
7.4.10.0090.00816.36
7.4.00.0060.01016.49
7.3.330.0070.00016.12
7.3.320.0000.00612.92
7.3.310.0000.00616.11
7.3.300.0000.00716.04
7.3.290.0100.00816.23
7.3.280.0120.00416.11
7.3.260.0060.01116.34
7.3.240.0100.00816.22
7.3.230.0080.00816.13
7.3.210.0100.00716.24
7.3.200.0120.01216.12
7.3.190.0190.00916.25
7.3.180.0120.00916.15
7.3.170.0060.01016.22
7.3.160.0080.00816.20
7.3.140.0060.00916.18
7.3.130.0110.00616.33
7.3.120.0070.01016.16
7.3.110.0100.00716.25
7.3.100.0070.00916.17
7.3.90.0070.01216.29
7.3.80.0100.00816.32
7.3.70.0090.01016.18
7.3.60.0050.01216.15
7.3.50.0120.00516.17
7.3.40.0080.00916.22
7.3.30.0050.01116.12
7.3.20.0090.00916.15
7.3.10.0140.00616.20
7.3.00.0080.00816.13
7.2.330.0120.00616.21
7.2.320.0130.00916.38
7.2.310.0070.01016.55
7.2.300.0170.00616.35
7.2.290.0030.01316.18
7.2.270.0080.01416.47
7.2.260.0080.00916.29
7.2.250.0080.00816.32
7.2.240.0100.00716.27
7.2.230.0070.01216.37
7.2.220.0050.01016.24
7.2.210.0090.01016.40
7.2.200.0100.01016.31
7.2.190.0070.01316.25
7.2.180.0120.00416.28
7.2.170.0110.00516.29
7.2.160.0040.01316.40
7.2.150.0110.00716.38
7.2.140.0140.00316.27
7.2.130.0080.00916.41
7.2.120.0120.00916.29
7.2.110.0100.00816.29
7.2.100.0100.01216.44
7.2.90.0150.01216.38
7.2.80.0130.00616.47
7.2.70.0100.01016.46
7.2.60.0040.01616.45
7.2.50.0070.01416.36
7.2.40.0080.01416.21
7.2.30.0060.01116.42
7.2.20.0120.00516.23
7.2.10.0060.01116.29
7.2.00.0060.01216.21

preferences:
83.88 ms | 400 KiB | 5 Q