3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function something() { return Something::class; } } $class = new Something; $class2 = new ${$class->something()};

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.0070.01416.63
8.3.50.0130.00822.00
8.3.40.0040.01119.02
8.3.30.0100.00718.64
8.3.20.0040.00420.16
8.3.10.0000.00821.86
8.3.00.0050.00319.50
8.2.180.0120.00916.50
8.2.170.0140.00022.96
8.2.160.0140.00020.58
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00817.75
8.2.120.0040.00426.35
8.2.110.0040.00421.12
8.2.100.0090.00317.65
8.2.90.0060.00319.22
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0090.00018.10
8.2.40.0000.00820.45
8.2.30.0000.00720.61
8.2.20.0030.00517.65
8.2.10.0050.00318.05
8.2.00.0000.00718.05
8.1.280.0180.00325.92
8.1.270.0030.00623.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0210.00022.62
8.1.230.0000.01117.71
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0080.00017.36
8.1.190.0000.00917.35
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0030.00522.11
8.1.150.0040.00418.80
8.1.140.0040.00419.57
8.1.130.0000.00717.70
8.1.120.0040.00417.50
8.1.110.0000.00717.46
8.1.100.0050.00217.46
8.1.90.0050.00217.43
8.1.80.0030.00517.48
8.1.70.0000.00817.42
8.1.60.0070.00017.59
8.1.50.0080.00017.52
8.1.40.0030.00517.41
8.1.30.0000.00917.66
8.1.20.0020.00517.51
8.1.10.0030.00517.51
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0050.00818.48
8.0.270.0000.00817.18
8.0.260.0060.00017.30
8.0.250.0000.00716.99
8.0.240.0030.00317.03
8.0.230.0080.00017.02
8.0.220.0060.00317.01
8.0.210.0000.00716.99
8.0.200.0000.00717.00
8.0.190.0050.00216.97
8.0.180.0020.00516.97
8.0.170.0040.00417.04
8.0.160.0030.00316.91
8.0.150.0000.00717.00
8.0.140.0040.00416.84
8.0.130.0000.00513.37
8.0.120.0000.00816.82
8.0.110.0040.00416.98
8.0.100.0060.00316.90
8.0.90.0000.00716.92
8.0.80.0100.00916.98
8.0.70.0040.00416.91
8.0.60.0030.00516.98
8.0.50.0090.00016.97
8.0.30.0130.00417.14
8.0.20.0080.01417.40
8.0.10.0070.00016.88
8.0.00.0060.01216.71
7.4.330.0000.00516.66
7.4.320.0030.00316.39
7.4.300.0060.00016.51
7.4.290.0000.00716.50
7.4.280.0000.00716.61
7.4.270.0030.00316.48
7.4.260.0040.00416.41
7.4.250.0070.00016.47
7.4.240.0020.00516.56
7.4.230.0070.00016.59
7.4.220.0030.01716.69
7.4.210.0080.00916.54
7.4.200.0000.00716.40
7.4.160.0070.01016.62
7.4.150.0030.01517.40
7.4.140.0090.01217.86
7.4.130.0100.00916.52
7.4.120.0120.00816.46
7.4.110.0120.00616.45
7.4.100.0100.00716.54
7.4.90.0100.00716.60
7.4.80.0120.00619.39
7.4.70.0130.00616.66
7.4.60.0090.00616.62
7.4.50.0090.00616.36
7.4.40.0090.01216.39
7.4.30.0120.00416.54
7.4.00.0040.01114.89
7.3.330.0050.00013.28
7.3.320.0030.00313.22
7.3.310.0030.00316.40
7.3.300.0030.00316.36
7.3.290.0030.00316.24
7.3.280.0090.01016.32
7.3.270.0100.00717.40
7.3.260.0150.00816.45
7.3.250.0060.01016.40
7.3.240.0100.00716.40
7.3.230.0070.01616.39
7.3.210.0130.00316.43
7.3.200.0060.01016.50
7.3.190.0160.00316.22
7.3.180.0150.00016.57
7.3.170.0030.01416.44
7.3.160.0100.00716.55
7.2.330.0120.00416.30
7.2.320.0250.02216.55
7.2.310.0090.00916.71
7.2.300.0090.01216.76
7.2.290.0060.01516.61
7.2.60.0030.01316.91
7.2.00.0120.00819.23
7.1.200.0070.00715.67
7.1.100.0060.00917.99
7.1.70.0050.00316.88
7.1.60.0090.01519.36
7.1.50.0100.01316.59
7.1.00.0070.08022.30
7.0.200.0030.00316.39
7.0.60.0170.06320.04
7.0.50.0030.08017.98
7.0.40.0070.04020.09
7.0.30.0130.04320.21
7.0.20.0200.05320.03
7.0.10.0030.04720.11
7.0.00.0030.06320.34
5.6.280.0030.06721.08
5.6.210.0100.08020.70
5.6.200.0000.04318.29
5.6.190.0070.07720.52
5.6.180.0230.04020.47
5.6.170.0270.07320.39
5.6.160.0100.08320.57
5.6.150.0030.08018.14
5.6.140.0030.04018.28
5.6.130.0030.05318.18
5.6.120.0030.09021.12
5.6.110.0030.04321.01
5.6.100.0100.07720.96
5.6.90.0070.07020.95
5.6.80.0130.07020.37
5.5.350.0270.08020.52
5.5.340.0100.04318.08
5.5.330.0030.06720.18
5.5.320.0230.07020.36
5.5.310.0300.07020.36
5.5.300.0030.04017.98
5.5.290.0070.07318.02
5.5.280.0130.05720.77
5.5.270.0130.07720.73
5.5.260.0130.05320.87
5.5.250.0000.04720.50
5.5.240.0200.05720.12

preferences:
46.38 ms | 401 KiB | 5 Q