3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myclass = new class { public function foo() { echo "blah"; } }; $myvar = clone $myclass; var_dump($myvar instanceof $myclass);

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.0030.01716.63
8.3.50.0150.00016.50
8.3.40.0090.00618.68
8.3.30.0060.00918.49
8.3.20.0070.00020.16
8.3.10.0040.00423.65
8.3.00.0060.00323.57
8.2.180.0110.01116.38
8.2.170.0090.00622.96
8.2.160.0100.01020.42
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00019.72
8.2.120.0050.00226.35
8.2.110.0030.00622.25
8.2.100.0040.00717.80
8.2.90.0020.00519.03
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00718.07
8.2.40.0040.00422.34
8.2.30.0000.00819.30
8.2.20.0000.00817.74
8.2.10.0070.00017.99
8.2.00.0000.00717.98
8.1.280.0050.00925.92
8.1.270.0090.00923.96
8.1.260.0070.01028.09
8.1.250.0140.00428.09
8.1.240.0040.00423.93
8.1.230.0040.00719.10
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.13
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0080.00020.63
8.1.150.0000.00818.92
8.1.140.0060.00319.48
8.1.130.0070.00017.57
8.1.120.0070.00017.46
8.1.110.0000.00817.51
8.1.100.0000.00817.38
8.1.90.0040.00417.34
8.1.80.0040.00417.42
8.1.70.0000.00817.43
8.1.60.0000.00817.54
8.1.50.0030.00517.51
8.1.40.0040.00417.50
8.1.30.0070.00417.65
8.1.20.0050.00317.46
8.1.10.0000.00717.54
8.1.00.0070.00017.41
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0030.00318.35
8.0.270.0070.00017.23
8.0.260.0000.00617.12
8.0.250.0030.00316.92
8.0.240.0000.00616.91
8.0.230.0000.00716.89
8.0.220.0030.00316.78
8.0.210.0070.00016.92
8.0.200.0000.00916.96
8.0.190.0040.00416.95
8.0.180.0000.00716.74
8.0.170.0070.00016.93
8.0.160.0000.00816.96
8.0.150.0070.00016.79
8.0.140.0040.00416.75
8.0.130.0050.00013.32
8.0.120.0080.00016.86
8.0.110.0000.00816.89
8.0.100.0000.00716.76
8.0.90.0070.00016.87
8.0.80.0130.00616.92
8.0.70.0000.00716.86
8.0.60.0030.00617.00
8.0.50.0080.00016.91
8.0.30.0120.00517.01
8.0.20.0080.01317.40
8.0.10.0040.00416.91
8.0.00.0120.01016.84
7.4.330.0050.00016.71
7.4.320.0000.00816.60
7.4.300.0080.00016.49
7.4.290.0040.00416.51
7.4.280.0060.00016.55
7.4.270.0000.00716.62
7.4.260.0040.00416.48
7.4.250.0080.00016.45
7.4.240.0050.00216.57
7.4.230.0070.00016.68
7.4.220.0090.00616.54
7.4.210.0070.00916.61
7.4.200.0070.00016.30
7.4.160.0060.00916.37
7.4.150.0030.01417.40
7.4.140.0170.00517.86
7.4.130.0120.00616.44
7.4.120.0100.00716.51
7.4.110.0100.00716.47
7.4.100.0120.00616.55
7.4.90.0160.00816.61
7.4.80.0060.01319.39
7.4.70.0120.00816.64
7.4.60.0160.00016.59
7.4.50.0090.00616.36
7.4.40.0140.00316.39
7.4.30.0190.00616.57
7.4.00.0060.00615.08
7.3.330.0030.00313.31
7.3.320.0000.00813.16
7.3.310.0000.00716.15
7.3.300.0000.00716.34
7.3.290.0040.00416.34
7.3.280.0120.00516.29
7.3.270.0030.01317.40
7.3.260.0070.01216.22
7.3.240.0090.01016.42
7.3.230.0100.00716.39
7.3.210.0100.00716.21
7.3.200.0090.00919.39
7.3.190.0090.00916.25
7.3.180.0100.00716.36
7.3.170.0030.01616.53
7.3.160.0160.00016.28
7.2.330.0100.00716.70
7.2.320.0030.01616.43
7.2.310.0090.00916.65
7.2.300.0120.01216.48
7.2.290.0030.01316.70
7.2.60.0040.00716.79
7.2.00.0070.01119.17
7.1.200.0090.00315.88
7.1.100.0060.00318.18
7.1.70.0080.00616.87
7.1.60.0030.01919.30
7.1.50.0000.02216.99
7.1.00.0030.07722.35
7.0.200.0030.00516.81
7.0.60.0100.08021.81
7.0.50.0100.03717.82
7.0.40.0030.05720.41
7.0.30.0270.08720.07
7.0.20.0130.06020.30
7.0.10.0070.09020.06
7.0.00.0070.08720.16
5.6.280.0070.06021.12
5.6.210.0100.03320.66
5.6.200.0070.06318.16
5.6.190.0130.07720.39
5.6.180.0330.05020.57
5.6.170.0270.05020.55
5.6.160.0030.05720.46
5.6.150.0100.08018.21
5.6.140.0070.06718.15
5.6.130.0070.08018.15
5.6.120.0130.07721.00
5.6.110.0200.06321.07
5.6.100.0030.05320.96
5.6.90.0070.08020.96
5.6.80.0070.06320.36
5.5.350.0300.05720.31
5.5.340.0030.03717.98
5.5.330.0100.04320.42
5.5.320.0330.07020.29
5.5.310.0200.05320.26
5.5.300.0070.04318.07
5.5.290.0070.08317.99
5.5.280.0100.05720.87
5.5.270.0000.04320.76
5.5.260.0200.07320.78
5.5.250.0130.07720.61
5.5.240.0170.07020.16

preferences:
53.53 ms | 400 KiB | 5 Q