3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { return new Bar(); } } $foo = new Foo(); var_dump(get_class($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.0110.00816.61
8.3.50.0170.00316.35
8.3.40.0090.00618.83
8.3.30.0120.00318.72
8.3.20.0000.00820.92
8.3.10.0070.00021.77
8.3.00.0090.00019.48
8.2.180.0140.00316.63
8.2.170.0000.01522.96
8.2.160.0070.00720.39
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0050.00222.26
8.2.120.0000.00826.35
8.2.110.0060.00320.88
8.2.100.0080.00417.72
8.2.90.0080.00017.90
8.2.80.0000.00819.27
8.2.70.0060.00317.63
8.2.60.0060.00317.90
8.2.50.0000.00818.10
8.2.40.0040.00420.54
8.2.30.0040.00421.04
8.2.20.0000.00717.87
8.2.10.0040.00417.96
8.2.00.0070.00017.98
8.1.280.0040.01125.92
8.1.270.0040.00423.80
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0150.00622.45
8.1.230.0070.00320.87
8.1.220.0000.00817.74
8.1.210.0030.00518.78
8.1.200.0030.00617.23
8.1.190.0000.00917.23
8.1.180.0050.00218.10
8.1.170.0040.00418.53
8.1.160.0030.00318.88
8.1.150.0000.00720.59
8.1.140.0060.00321.23
8.1.130.0040.00418.75
8.1.120.0030.00317.29
8.1.110.0030.00617.33
8.1.100.0050.00317.40
8.1.90.0040.00417.36
8.1.80.0080.00017.30
8.1.70.0000.00617.32
8.1.60.0060.00317.52
8.1.50.0030.00517.48
8.1.40.0080.00417.43
8.1.30.0040.00417.52
8.1.20.0040.00417.58
8.1.10.0030.00617.43
8.1.00.0060.00317.32
8.0.300.0060.00319.86
8.0.290.0060.00316.63
8.0.280.0000.00718.25
8.0.270.0060.00317.16
8.0.260.0060.00016.80
8.0.250.0030.00316.99
8.0.240.0000.00716.82
8.0.230.0030.00316.86
8.0.220.0030.00316.91
8.0.210.0000.00916.91
8.0.200.0000.00816.91
8.0.190.0040.00416.92
8.0.180.0070.00016.93
8.0.170.0000.00716.97
8.0.160.0000.00716.83
8.0.150.0040.00416.74
8.0.140.0040.00416.77
8.0.130.0060.00013.26
8.0.120.0000.00716.73
8.0.110.0000.00816.86
8.0.100.0040.00416.85
8.0.90.0040.00416.94
8.0.80.0060.00916.83
8.0.70.0070.00016.82
8.0.60.0020.00516.87
8.0.50.0070.00016.88
8.0.30.0020.01716.87
8.0.20.0130.00717.40
8.0.10.0070.00016.94
8.0.00.0030.01316.68
7.4.330.0000.00515.55
7.4.320.0030.00316.32
7.4.300.0000.00716.41
7.4.290.0000.00716.34
7.4.280.0000.00716.44
7.4.270.0040.00416.58
7.4.260.0050.00013.26
7.4.250.0040.00416.39
7.4.240.0030.00316.32
7.4.230.0070.00016.53
7.4.220.0200.00316.48
7.4.210.0040.01016.39
7.4.200.0030.00316.50
7.4.160.0060.01016.39
7.4.150.0060.01217.40
7.4.140.0120.00617.86
7.4.130.0150.00916.61
7.4.120.0100.01116.50
7.4.110.0030.01516.29
7.4.100.0110.00916.50
7.4.90.0090.00916.54
7.4.80.0120.00919.39
7.4.70.0080.01216.34
7.4.60.0100.00716.40
7.4.50.0000.01116.33
7.4.40.0100.00716.44
7.4.30.0130.00316.09
7.4.00.0080.00814.80
7.3.330.0000.00513.27
7.3.320.0050.00013.20
7.3.310.0000.00916.39
7.3.300.0070.00016.32
7.3.290.0060.01016.32
7.3.280.0090.00716.33
7.3.270.0070.01117.40
7.3.260.0100.01016.59
7.3.250.0100.01116.45
7.3.240.0060.01216.62
7.3.230.0190.00216.36
7.3.210.0100.01016.45
7.3.200.0060.01216.41
7.3.190.0060.00916.29
7.3.180.0080.01116.64
7.3.170.0120.00416.54
7.3.160.0030.01316.28
7.3.120.0070.01014.81
7.3.110.0070.01114.75
7.3.100.0030.01314.52
7.3.90.0030.01014.64
7.3.80.0040.00814.58
7.3.70.0060.00614.85
7.3.60.0070.01014.70
7.3.50.0080.00514.82
7.3.40.0000.01314.70
7.3.30.0070.01014.79
7.3.20.0040.00416.56
7.3.10.0060.01116.47
7.3.00.0030.00916.32
7.2.330.0140.00416.47
7.2.320.0070.01016.46
7.2.310.0130.00316.62
7.2.300.0070.01016.59
7.2.290.0060.01116.55
7.2.250.0070.01115.08
7.2.240.0040.01514.79
7.2.230.0100.00014.94
7.2.220.0000.01014.90
7.2.210.0100.00314.99
7.2.200.0110.00714.70
7.2.190.0060.00914.96
7.2.180.0090.00314.64
7.2.170.0030.01114.85
7.2.160.0110.00714.83
7.2.150.0060.00916.79
7.2.140.0070.01016.82
7.2.130.0090.00516.82
7.2.120.0110.00416.70
7.2.110.0100.00416.67
7.2.100.0140.00816.54
7.2.90.0100.00416.57
7.2.80.0050.01116.50
7.2.70.0020.00816.64
7.2.60.0040.00916.57
7.2.50.0060.00616.67
7.2.40.0040.01116.63
7.2.30.0120.00416.60
7.2.20.0060.01016.67
7.2.10.0050.00816.62
7.2.00.0080.00417.67
7.1.330.0070.00715.80
7.1.320.0040.01115.48
7.1.310.0040.01115.58
7.1.300.0100.00715.67
7.1.290.0100.00315.67
7.1.280.0000.01615.42
7.1.270.0040.00715.71
7.1.260.0000.00915.71
7.1.250.0050.00615.54
7.1.200.0100.00315.39
7.1.100.0030.00717.57
7.1.70.0000.00816.80
7.1.60.2270.01333.02
7.1.50.1430.01732.52
7.1.40.0130.01332.48
7.1.30.1830.01032.66
7.1.20.0170.01332.41
7.1.10.2300.01314.56
7.1.00.0030.01714.89
7.0.200.3030.00714.67
7.0.190.2630.01714.71
7.0.180.0000.01714.41
7.0.170.0100.00714.54
7.0.160.0070.01014.53
7.0.150.0130.00714.27
7.0.140.0030.01314.31
7.0.130.0130.00714.48
7.0.120.0030.01314.60
7.0.110.0300.01014.56
7.0.100.0230.00014.36
7.0.90.0070.01014.28
7.0.80.0070.01314.33
7.0.70.0030.02014.29
7.0.60.2900.00314.30
7.0.50.0070.01014.62
7.0.40.0070.01014.55
7.0.30.3100.01714.55
7.0.20.0030.01714.36
7.0.10.0000.01714.51
7.0.00.3130.01714.36

preferences:
53.88 ms | 401 KiB | 5 Q