3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test {} $class = 'TEST'; var_dump($class, eval('return ' . $class . '::class;'));

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.0100.00718.18
8.3.50.0100.00821.99
8.3.40.0090.00619.02
8.3.30.0140.00019.22
8.3.20.0040.00420.34
8.3.10.0090.00021.77
8.3.00.0060.00319.26
8.2.180.0140.00018.34
8.2.170.0110.00422.96
8.2.160.0030.01020.32
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00619.48
8.2.110.0000.00822.25
8.2.100.0080.00417.72
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0090.00017.61
8.2.60.0070.00017.93
8.2.50.0030.00718.07
8.2.40.0030.00619.95
8.2.30.0040.00418.05
8.2.20.0040.00417.70
8.2.10.0040.00417.95
8.2.00.0000.00817.59
8.1.280.0100.01025.92
8.1.270.0030.00518.86
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00823.98
8.1.230.0110.00017.76
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0080.00017.25
8.1.180.0000.00718.10
8.1.170.0040.00419.02
8.1.160.0040.00422.06
8.1.150.0000.00718.85
8.1.140.0070.00017.50
8.1.130.0000.00717.82
8.1.120.0070.00017.39
8.1.110.0040.00417.34
8.1.100.0040.00417.47
8.1.90.0000.00717.44
8.1.80.0040.00417.36
8.1.70.0030.00317.41
8.1.60.0000.00817.59
8.1.50.0050.00317.49
8.1.40.0100.00017.42
8.1.30.0000.00817.72
8.1.20.0000.00817.58
8.1.10.0000.00717.55
8.1.00.0080.00017.40
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0000.00717.18
8.0.260.0000.00617.19
8.0.250.0070.00016.99
8.0.240.0000.00716.95
8.0.230.0030.00316.99
8.0.220.0000.00716.79
8.0.210.0070.00016.88
8.0.200.0030.00316.89
8.0.190.0040.00416.98
8.0.180.0000.00716.94
8.0.170.0030.00516.92
8.0.160.0000.00716.86
8.0.150.0000.00816.83
8.0.140.0070.00016.71
8.0.130.0000.00713.28
8.0.120.0040.00416.82
8.0.110.0060.00316.90
8.0.100.0070.00016.69
8.0.90.0000.00816.70
8.0.80.0060.00916.91
8.0.70.0040.00416.96
8.0.60.0000.00716.79
8.0.50.0000.00716.77
8.0.30.0140.00716.97
8.0.20.0130.01617.40
8.0.10.0000.00816.93
8.0.00.0090.00916.67
7.4.330.0000.00515.03
7.4.320.0060.00016.64
7.4.300.0030.00316.58
7.4.290.0060.00316.60
7.4.280.0000.00816.39
7.4.270.0030.00316.52
7.4.260.0000.00716.45
7.4.250.0080.00016.54
7.4.240.0060.00116.56
7.4.230.0030.00316.70
7.4.220.0060.01216.56
7.4.210.0080.00716.61
7.4.200.0040.00416.58
7.4.160.0100.00616.38
7.4.150.0150.00417.40
7.4.140.0090.00817.86
7.4.130.0100.01116.53
7.4.120.0070.00916.42
7.4.110.0130.00616.43
7.4.100.0160.00216.31
7.4.90.0100.01016.59
7.4.80.0070.01019.39
7.4.70.0170.00016.43
7.4.60.0110.00716.31
7.4.50.0040.00016.47
7.4.40.0120.00916.60
7.4.30.0070.01016.54
7.4.00.0040.00715.02
7.3.330.0060.00013.30
7.3.320.0000.01213.16
7.3.310.0000.00716.27
7.3.300.0000.00716.26
7.3.290.0030.00316.18
7.3.280.0110.00816.25
7.3.270.0110.00617.40
7.3.260.0100.00716.49
7.3.250.0110.01116.39
7.3.240.0100.00716.58
7.3.230.0060.01416.45
7.3.210.0120.00616.50
7.3.200.0080.01519.39
7.3.190.0130.00316.37
7.3.180.0130.00316.58
7.3.170.0140.00416.32
7.3.160.0110.01116.45
7.2.330.0130.00416.39
7.2.320.0150.00316.63
7.2.310.0110.00616.63
7.2.300.0120.00916.73
7.2.290.0130.01016.69
7.2.00.0080.00819.54
7.1.100.0070.00718.29
7.1.70.0050.00317.03
7.1.60.0090.01519.50
7.1.50.0070.01416.91
7.1.00.0000.08022.42
7.0.200.0210.00416.50
7.0.140.0030.05022.07
7.0.60.0130.06320.03
7.0.50.0030.06717.95
7.0.40.0100.08720.02
7.0.30.0100.05020.23
7.0.20.0200.03720.23
7.0.10.0230.05720.25
7.0.00.0000.06020.12
5.6.280.0070.07021.02
5.6.210.0030.08720.71
5.6.200.0100.07018.23
5.6.190.0030.08320.47
5.6.180.0270.04020.68
5.6.170.0170.08320.47
5.6.160.0130.03320.57
5.6.150.0030.06018.18
5.6.140.0000.04718.15
5.6.130.0070.04018.23
5.6.120.0100.07720.96
5.6.110.0130.04320.98
5.6.100.0130.07321.09
5.6.90.0030.09021.13
5.6.80.0000.04720.43
5.6.70.0330.07020.45
5.5.350.0100.03720.42
5.5.340.0030.08017.94
5.5.330.0200.07320.14
5.5.320.0330.07020.28
5.5.310.0330.07020.34
5.5.300.0030.08317.98
5.5.290.0070.06318.04
5.5.280.0100.08320.73
5.5.270.0100.08020.89
5.5.260.0070.07320.72
5.5.250.0130.07720.69
5.5.240.0100.08020.04
5.4.450.0600.06019.45
5.4.440.0630.06319.39
5.4.430.0670.06019.21
5.4.420.0500.05319.55
5.4.410.0800.06019.46
5.4.400.0270.05018.89
5.4.390.0300.04318.76
5.4.380.0330.06318.56
5.4.370.0300.06318.78
5.4.360.0200.07318.46
5.4.350.0270.06718.46
5.4.340.0330.06718.80
5.4.320.0300.06718.75
5.4.310.0300.06718.69
5.4.300.0130.07318.76
5.4.290.0300.04718.62
5.4.280.0230.06318.46
5.4.270.0200.05318.55
5.4.260.0170.05718.73
5.4.250.0100.06318.62
5.4.240.0170.06318.52
5.4.230.0230.06018.75
5.4.220.0270.05318.74
5.4.210.0270.05018.45
5.4.200.0430.04316.63
5.4.190.0270.05018.77
5.4.180.0170.06018.51
5.4.170.0100.07318.77
5.4.160.0230.06318.56
5.4.150.0370.06018.69
5.4.140.0170.05716.43
5.4.130.0300.04016.20
5.4.120.0130.05716.25
5.4.110.0170.05016.21
5.4.100.0200.05016.29
5.4.90.0330.04316.32
5.4.80.0230.05016.42
5.4.70.0200.05716.24
5.4.60.0370.04016.15
5.4.50.0130.05716.41
5.4.40.0200.05016.26
5.4.30.0300.05716.28
5.4.20.0230.04716.27
5.4.10.0200.05016.29
5.4.00.0230.06315.68
5.3.290.0230.05714.66
5.3.280.0300.06014.76
5.3.270.0200.06714.59
5.3.260.0300.06314.66
5.3.250.0300.06314.74
5.3.240.0300.06314.71
5.3.230.0200.07014.77
5.3.220.0070.06314.62
5.3.210.0170.05714.62
5.3.200.0270.04314.55
5.3.190.0300.04014.55
5.3.180.0170.06014.61
5.3.170.0230.07314.70
5.3.160.0400.05714.78
5.3.150.0130.08014.67
5.3.140.0200.05314.78
5.3.130.0330.06314.72
5.3.120.0300.05314.73
5.3.110.0030.07014.64
5.3.100.0200.05714.09
5.3.90.0230.04714.12
5.3.80.0230.04714.00
5.3.70.0330.05714.07
5.3.60.0230.05714.12
5.3.50.0170.05014.04
5.3.40.0230.05013.98
5.3.30.0130.05313.96
5.3.20.0100.06013.71
5.3.10.0170.05313.75
5.3.00.0130.05713.67
5.2.170.0130.04311.18
5.2.160.0200.03711.22
5.2.150.0270.03711.25
5.2.140.0230.04011.34
5.2.130.0200.03711.14
5.2.120.0170.04711.14
5.2.110.0130.04311.09
5.2.100.0170.04311.32
5.2.90.0100.04711.20
5.2.80.0130.04311.14
5.2.70.0130.04311.16
5.2.60.0130.04311.05
5.2.50.0170.04311.24
5.2.40.0100.04311.05
5.2.30.0070.05011.19
5.2.20.0070.05011.07
5.2.10.0170.04010.88
5.2.00.0170.04310.73
5.1.60.0130.04710.12
5.1.50.0170.0409.98
5.1.40.0100.03710.02
5.1.30.0100.05710.55
5.1.20.0130.03710.43
5.1.10.0100.03710.25
5.1.00.0170.03310.18
5.0.50.0130.0308.65
5.0.40.0130.0208.43
5.0.30.0100.0438.26
5.0.20.0070.0278.32
5.0.10.0100.0278.40
5.0.00.0070.0538.19
4.4.90.0170.0207.07
4.4.80.0070.0237.07
4.4.70.0000.0277.07
4.4.60.0070.0237.07
4.4.50.0100.0237.07
4.4.40.0030.0377.07
4.4.30.0100.0237.07
4.4.20.0070.0277.07
4.4.10.0030.0277.07
4.4.00.0070.0377.07
4.3.110.0100.0237.07
4.3.100.0100.0307.07
4.3.90.0030.0337.07
4.3.80.0030.0437.07
4.3.70.0030.0307.07
4.3.60.0100.0277.07
4.3.50.0000.0277.07
4.3.40.0100.0307.07
4.3.30.0030.0307.07
4.3.20.0030.0237.07
4.3.10.0030.0307.07
4.3.00.0100.0237.01

preferences:
51.27 ms | 401 KiB | 5 Q