3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { function hello(): string { return "hello"; } }; $class = get_class($a); $b = new $class; var_dump($b->hello());

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.0090.00916.50
8.3.50.0280.00822.05
8.3.40.0070.00718.45
8.3.30.0070.01018.63
8.3.20.0080.00020.22
8.3.10.0070.00023.66
8.3.00.0030.00617.25
8.2.180.0120.00616.50
8.2.170.0070.01022.96
8.2.160.0100.00322.09
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0080.00317.46
8.2.110.0000.01020.64
8.2.100.0100.00317.91
8.2.90.0000.00819.07
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0060.00317.93
8.2.50.0050.00518.07
8.2.40.0040.00419.34
8.2.30.0000.00820.69
8.2.20.0040.00417.55
8.2.10.0070.00017.92
8.2.00.0040.00418.05
8.1.280.0070.01025.92
8.1.270.0000.00923.79
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.73
8.1.230.0090.00321.01
8.1.220.0050.00317.79
8.1.210.0000.01018.77
8.1.200.0070.00317.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00619.09
8.1.160.0000.00722.00
8.1.150.0080.00018.88
8.1.140.0040.00419.48
8.1.130.0030.00317.58
8.1.120.0000.00817.34
8.1.110.0040.00417.35
8.1.100.0050.00217.41
8.1.90.0050.00217.34
8.1.80.0000.00817.45
8.1.70.0040.00417.39
8.1.60.0040.00417.58
8.1.50.0050.00317.41
8.1.40.0000.00717.48
8.1.30.0030.00617.68
8.1.20.0000.00717.62
8.1.10.0070.00317.55
8.1.00.0030.00617.46
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0030.00317.22
8.0.260.0030.00317.26
8.0.250.0000.00716.94
8.0.240.0030.00316.95
8.0.230.0000.00716.92
8.0.220.0000.00716.79
8.0.210.0040.00416.76
8.0.200.0070.00016.90
8.0.190.0030.00317.00
8.0.180.0040.00416.79
8.0.170.0040.00416.88
8.0.160.0000.00716.91
8.0.150.0070.00016.86
8.0.140.0040.00416.82
8.0.130.0030.00313.29
8.0.120.0050.00216.71
8.0.110.0040.00416.90
8.0.100.0030.00516.77
8.0.90.0000.00716.75
8.0.80.0060.00916.88
8.0.70.0030.00616.77
8.0.60.0040.00416.94
8.0.50.0000.00716.94
8.0.30.0080.01017.24
8.0.20.0100.00817.40
8.0.10.0040.00416.82
8.0.00.0070.01316.61
7.4.330.0020.00215.20
7.4.320.0000.00716.48
7.4.300.0000.00616.51
7.4.290.0040.00416.58
7.4.280.0040.00416.56
7.4.270.0030.00316.43
7.4.260.0000.00816.59
7.4.250.0000.00716.55
7.4.240.0030.00416.60
7.4.230.0030.00316.68
7.4.220.0140.01116.54
7.4.210.0040.01116.53
7.4.200.0030.00316.57
7.4.160.0090.00616.46
7.4.150.0060.01217.40
7.4.140.0170.00517.86
7.4.130.0090.00816.34
7.4.120.0100.01016.63
7.4.110.0070.01616.51
7.4.100.0060.01216.45
7.4.90.0090.00916.38
7.4.80.0160.00619.39
7.4.70.0060.01016.38
7.4.60.0090.00616.46
7.4.50.0050.00316.45
7.4.40.0090.00916.51
7.4.30.0090.00916.65
7.4.00.0070.00715.17
7.3.330.0000.00613.11
7.3.320.0000.00513.11
7.3.310.0000.00716.30
7.3.300.0070.00016.33
7.3.290.0090.00716.29
7.3.280.0070.01216.29
7.3.270.0060.01117.40
7.3.260.0130.00516.56
7.3.250.0090.00816.33
7.3.240.0100.01116.33
7.3.230.0030.01616.51
7.3.210.0000.01516.53
7.3.200.0100.00716.26
7.3.190.0080.00816.48
7.3.180.0100.01016.10
7.3.170.0000.01616.34
7.3.160.0070.01016.21
7.2.330.0040.01416.60
7.2.320.0170.00616.77
7.2.310.0170.00716.74
7.2.300.0030.01316.59
7.2.290.0110.00616.55
7.2.60.0070.00716.68
7.2.00.0180.00619.11
7.1.200.0030.00615.64
7.1.100.0120.00617.93
7.1.70.0050.00517.19
7.1.60.0030.02019.43
7.1.50.0070.00317.02
7.1.00.0070.07322.36
7.0.200.0160.00415.01
7.0.60.0070.05320.00
7.0.50.0170.06717.88
7.0.40.0030.09020.16
7.0.30.0030.07020.27
7.0.20.0400.05320.23
7.0.10.0070.04720.07
7.0.00.0070.08720.05
5.6.280.0000.03321.15
5.6.210.0100.08020.64
5.6.200.0100.08018.16
5.6.190.0070.04320.64
5.6.180.0270.04320.67
5.6.170.0330.08020.54
5.6.160.0100.06320.54
5.6.150.0070.06018.22
5.6.140.0070.08318.15
5.6.130.0030.07718.25
5.6.120.0070.03721.13
5.6.110.0000.04320.88
5.6.100.0030.06321.03
5.6.90.0130.07721.05
5.6.80.0070.07020.44
5.5.350.0370.06320.42
5.5.340.0100.07718.08
5.5.330.0070.04320.31
5.5.320.0430.04020.27
5.5.310.0370.05320.36
5.5.300.0000.05317.95
5.5.290.0100.07717.98
5.5.280.0030.07320.76
5.5.270.0100.04720.86
5.5.260.0070.06720.88
5.5.250.0030.06720.70
5.5.240.0200.03020.11
5.4.450.0030.07019.60
5.4.440.0300.06019.38
5.4.430.0230.05319.33
5.4.420.0200.05719.55
5.4.410.0130.06319.48
5.4.400.0170.05719.27
5.4.390.0300.04319.05
5.4.380.0670.05719.25
5.4.370.0430.06719.00
5.4.360.0530.05718.92
5.4.350.0670.05318.82
5.4.340.0670.05719.38
5.4.320.0730.04319.23
5.4.310.0630.06319.24
5.4.300.0300.05019.07
5.4.290.0300.05319.20
5.4.280.0200.06019.23
5.4.270.0300.04319.27
5.4.260.0200.05319.22
5.4.250.0270.05019.00
5.4.240.0130.05319.26
5.4.230.0330.06719.23
5.4.220.0170.05319.37
5.4.210.0170.05019.07
5.4.200.0370.05019.06
5.4.190.0330.04319.06
5.4.180.0200.05318.81
5.4.170.0230.05019.09
5.4.160.0230.04719.10
5.4.150.0130.06019.21
5.4.140.0070.08016.47
5.4.130.0400.05316.40
5.4.120.0100.05316.40
5.4.110.0170.05716.42
5.4.100.0100.05016.63
5.4.90.0170.06716.59
5.4.80.0070.05716.23
5.4.70.0130.04716.51
5.4.60.0170.05016.60
5.4.50.0230.06016.39
5.4.40.0230.04316.39
5.4.30.0170.04716.59
5.4.20.0070.05016.56
5.4.10.0030.05716.48
5.4.00.0230.04315.88

preferences:
48.93 ms | 401 KiB | 5 Q