3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CFoo { public function foo() { $this->foo = 'foo'; } } class CBar { public function bar() { CFoo::foo(); } } $cBar = new CBar(); $cBar->bar(); echo $cBar->foo;

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.0120.00318.56
8.3.50.0200.00018.07
8.3.40.0040.01218.79
8.3.30.0060.01218.84
8.3.20.0030.00520.86
8.3.10.0000.00721.91
8.3.00.0040.00419.69
8.2.180.0220.00018.54
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0070.00024.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0050.00321.04
8.2.110.0030.00720.79
8.2.100.0080.00417.91
8.2.90.0080.00019.95
8.2.80.0040.00422.33
8.2.70.0040.00817.91
8.2.60.0060.00317.80
8.2.50.0000.00818.10
8.2.40.0000.00920.65
8.2.30.0000.00819.19
8.2.20.0040.00418.06
8.2.10.0030.00618.00
8.2.00.0000.00717.56
8.1.280.0060.00925.92
8.1.270.0070.00023.80
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.05
8.1.230.0060.00620.96
8.1.220.0050.00317.74
8.1.210.0000.00818.84
8.1.200.0030.00617.23
8.1.190.0000.00817.00
8.1.180.0050.00318.10
8.1.170.0060.00320.43
8.1.160.0000.00818.83
8.1.150.0040.00320.32
8.1.140.0070.00019.44
8.1.130.0000.00718.99
8.1.120.0000.00717.37
8.1.110.0040.00417.36
8.1.100.0040.00417.39
8.1.90.0000.00817.41
8.1.80.0030.00717.43
8.1.70.0000.00717.39
8.1.60.0040.00417.62
8.1.50.0000.00817.55
8.1.40.0070.00017.56
8.1.30.0050.00317.69
8.1.20.0030.00617.65
8.1.10.0050.00317.63
8.1.00.0040.00417.56
8.0.300.0040.00420.09
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0070.00017.16
8.0.260.0030.00317.15
8.0.250.0000.00717.00
8.0.240.0080.00016.88
8.0.230.0030.00316.89
8.0.220.0050.00216.75
8.0.210.0000.00716.77
8.0.200.0000.00616.93
8.0.190.0030.00716.84
8.0.180.0050.00316.88
8.0.170.0040.00416.98
8.0.160.0030.00316.88
8.0.150.0020.00516.79
8.0.140.0030.00616.84
8.0.130.0050.00013.30
8.0.120.0000.00916.82
8.0.110.0070.00016.69
8.0.100.0030.00516.74
8.0.90.0050.00316.79
8.0.80.0030.01316.89
8.0.70.0040.00416.79
8.0.60.0040.00416.79
8.0.50.0040.00416.93
8.0.30.0090.00916.99
8.0.20.0160.00917.40
8.0.10.0000.00716.99
8.0.00.0130.00316.65
7.4.330.0000.00415.55
7.4.320.0000.00716.39
7.4.300.0000.00616.51
7.4.290.0040.00416.54
7.4.280.0040.00416.43
7.4.270.0030.00316.48
7.4.260.0070.00016.53
7.4.250.0030.00316.56
7.4.240.0040.00416.63
7.4.230.0000.00716.48
7.4.220.0060.01216.41
7.4.210.0040.01416.64
7.4.200.0000.00716.71
7.4.160.0060.01116.46
7.4.150.0150.00917.40
7.4.140.0150.00517.86
7.4.130.0100.00716.48
7.4.120.0100.01016.59
7.4.110.0070.01116.69
7.4.100.0100.01016.69
7.4.90.0140.00416.48
7.4.80.0110.01519.39
7.4.70.0060.01016.48
7.4.60.0070.01016.35
7.4.50.0000.01816.45
7.4.40.0080.00816.41
7.4.30.0060.01316.41
7.4.10.0040.01514.63
7.4.00.0050.01314.96
7.3.330.0000.00613.18
7.3.320.0020.00313.10
7.3.310.0070.00016.34
7.3.300.0000.00716.37
7.3.290.0030.00316.19
7.3.280.0080.01016.33
7.3.270.0090.00917.40
7.3.260.0060.01316.35
7.3.250.0100.00916.35
7.3.240.0120.00816.56
7.3.230.0150.00616.39
7.3.210.0030.01316.35
7.3.200.0030.01916.38
7.3.190.0060.01016.30
7.3.180.0120.00316.27
7.3.170.0110.00516.33
7.3.160.0150.00416.48
7.3.130.0100.00614.82
7.3.120.0070.01114.57
7.3.110.0070.01314.64
7.3.100.0090.00614.91
7.3.90.0030.01015.06
7.3.80.0070.00714.68
7.3.70.0070.00714.69
7.3.60.0080.00814.96
7.3.50.0060.00614.77
7.3.40.0060.00614.82
7.3.30.0030.01014.91
7.3.20.0040.01216.75
7.3.10.0080.00816.64
7.3.00.0130.00016.77
7.2.330.0040.01316.58
7.2.320.0130.00716.39
7.2.310.0130.00316.45
7.2.300.0130.01016.46
7.2.290.0120.00416.65
7.2.260.0040.01514.95
7.2.250.0060.01214.87
7.2.240.0170.00015.08
7.2.230.0000.01514.75
7.2.220.0060.00914.90
7.2.210.0060.00915.02
7.2.200.0090.00015.02
7.2.190.0030.01015.10
7.2.180.0080.00314.66
7.2.170.0060.00614.72
7.2.160.0000.00915.00
7.2.150.0000.01516.93
7.2.140.0030.00616.62
7.2.130.0090.00916.94
7.2.120.0000.01516.54
7.2.110.0030.01016.98
7.2.100.0000.01316.82
7.2.90.0140.00316.81
7.2.80.0100.00016.77
7.2.70.0000.01316.68
7.2.60.0090.00416.89
7.2.50.0040.00817.02
7.2.40.0030.00617.04
7.2.30.0060.00916.56
7.2.20.0040.00716.96
7.2.10.0000.01516.80
7.2.00.0050.01018.09
7.1.330.0040.01215.41
7.1.320.0100.00615.49
7.1.310.0060.00915.67
7.1.300.0000.01315.70
7.1.290.0030.01015.45
7.1.280.0070.00715.50
7.1.270.0080.00815.80
7.1.260.0030.01015.64
7.1.250.0130.00315.77
7.1.240.0070.00415.73
7.1.230.0100.00715.48
7.1.220.0070.00715.69
7.1.210.0030.01315.50
7.1.200.0050.00515.67
7.1.190.0040.00815.48
7.1.180.0050.00515.84
7.1.170.0030.00915.79
7.1.160.0000.00915.79
7.1.150.0090.00615.79
7.1.140.0070.00715.69
7.1.130.0080.00415.69
7.1.120.0030.00615.79
7.1.110.0000.01115.73
7.1.100.0050.01216.88
7.1.90.0030.01215.46
7.1.80.0070.01015.48
7.1.70.0070.00716.19
7.1.60.0050.01016.26
7.1.50.0090.01025.21
7.1.40.0030.01415.52
7.1.30.0030.00915.72
7.1.20.0000.01315.73
7.1.10.0070.00715.68
7.1.00.0390.03918.17
7.0.330.0060.00615.48
7.0.320.0030.01015.40
7.0.310.0030.00615.47
7.0.300.0080.00315.10
7.0.290.0060.00615.24
7.0.280.0030.00615.46
7.0.270.0130.00315.18
7.0.260.0040.00815.20
7.0.250.0030.01015.41
7.0.240.0060.01315.33
7.0.230.0000.01515.34
7.0.220.0100.00715.43
7.0.210.0030.01315.43
7.0.200.0030.00816.17
7.0.190.0090.00315.27
7.0.180.0040.00415.19
7.0.170.0030.01015.34
7.0.160.0030.00615.37
7.0.150.0070.00715.44
7.0.140.0480.02717.79
7.0.130.0550.03617.83
7.0.120.0690.03317.92
7.0.110.0480.03517.72
7.0.100.0590.02917.94
7.0.90.0450.03217.85
7.0.80.0480.03717.94
7.0.70.0450.03717.77
7.0.60.0320.03817.61
7.0.50.0520.04417.84
7.0.40.0520.03716.80
7.0.30.0550.03916.85
7.0.20.0390.02916.80
7.0.10.0350.03516.92
7.0.00.0400.02816.80
5.6.400.0000.01414.28
5.6.390.0040.01114.50
5.6.380.0000.01014.40
5.6.370.0040.00414.04
5.6.360.0120.00414.31
5.6.350.0060.00614.46
5.6.340.0030.00614.60
5.6.330.0070.01014.67
5.6.320.0060.00614.41
5.6.310.0100.00314.47
5.6.300.0030.00914.36
5.6.290.0110.03117.87
5.6.280.0070.03717.55
5.6.270.0130.03117.68
5.6.260.0080.03217.62
5.6.250.0050.04417.79
5.6.240.0160.03517.62
5.6.230.0070.03517.61
5.6.220.0170.03517.46
5.6.210.0180.03017.70
5.6.200.0050.04017.61
5.6.190.0100.03517.75
5.6.180.0050.03717.64
5.6.170.0100.04117.81
5.6.160.0160.04317.61
5.6.150.0140.04417.69
5.6.140.0060.04117.67
5.6.130.0160.04217.67
5.6.120.0080.04317.64
5.6.110.0070.04717.60
5.6.100.0060.03617.64
5.6.90.0070.03317.80
5.6.80.0100.03017.45
5.6.70.0100.04117.36
5.6.60.0070.03917.46
5.6.50.0110.02817.45
5.6.40.0100.03517.32
5.6.30.0080.03417.49
5.6.20.0080.04017.30
5.6.10.0090.03517.29
5.6.00.0180.02517.25

preferences:
60.02 ms | 401 KiB | 5 Q