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.70.0160.00618.18
8.3.60.0150.00616.38
8.3.50.0140.00621.95
8.3.40.0180.00018.63
8.3.30.0070.00719.08
8.3.20.0020.00520.38
8.3.10.0050.00321.74
8.3.00.0060.00319.38
8.2.190.0170.00316.63
8.2.180.0110.00718.54
8.2.170.0100.00622.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00319.36
8.2.110.0030.00619.18
8.2.100.0120.00017.63
8.2.90.0000.00719.13
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0100.00018.07
8.2.40.0000.00820.00
8.2.30.0000.00817.98
8.2.20.0080.00017.69
8.2.10.0000.00817.98
8.2.00.0040.00417.61
8.1.280.0110.00425.92
8.1.270.0090.00318.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0040.00717.76
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0070.00317.36
8.1.190.0040.00417.23
8.1.180.0090.00018.10
8.1.170.0040.00418.88
8.1.160.0000.00822.02
8.1.150.0000.00818.90
8.1.140.0040.00417.33
8.1.130.0030.00317.88
8.1.120.0040.00417.36
8.1.110.0000.00717.48
8.1.100.0000.00717.34
8.1.90.0050.00317.38
8.1.80.0000.00717.41
8.1.70.0030.00317.42
8.1.60.0060.00317.56
8.1.50.0080.00017.40
8.1.40.0070.00417.53
8.1.30.0040.00417.62
8.1.20.0000.00717.54
8.1.10.0030.00517.52
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0000.00617.31
8.0.250.0000.00616.84
8.0.240.0040.00417.00
8.0.230.0030.00516.96
8.0.220.0040.00416.86
8.0.210.0040.00416.94
8.0.200.0060.00316.95
8.0.190.0000.00816.95
8.0.180.0000.00816.90
8.0.170.0040.00416.95
8.0.160.0000.00816.89
8.0.150.0000.00716.88
8.0.140.0000.00816.75
8.0.130.0040.00413.41
8.0.120.0050.00316.89
8.0.110.0040.00416.89
8.0.100.0050.00316.83
8.0.90.0030.00616.73
8.0.80.0130.00716.93
8.0.70.0090.00016.77
8.0.60.0040.00416.76
8.0.50.0040.00416.79
8.0.30.0100.01016.97
8.0.20.0140.00917.40
8.0.10.0040.00416.86
8.0.00.0130.00716.85
7.4.330.0000.00515.03
7.4.320.0030.00316.61
7.4.300.0000.00816.52
7.4.290.0030.00716.65
7.4.280.0030.00516.51
7.4.270.0030.00316.53
7.4.260.0000.00716.39
7.4.250.0000.00816.52
7.4.240.0060.00216.47
7.4.230.0070.00016.30
7.4.220.0130.00716.55
7.4.210.0080.01116.51
7.4.200.0030.00316.41
7.4.160.0130.00416.34
7.4.150.0110.00717.40
7.4.140.0110.00617.86
7.4.130.0100.01016.53
7.4.120.0070.01016.54
7.4.110.0120.00916.52
7.4.100.0090.00916.51
7.4.90.0080.00916.62
7.4.80.0110.01119.39
7.4.70.0120.00816.45
7.4.60.0000.01916.37
7.4.50.0040.00416.55
7.4.40.0110.01316.35
7.4.30.0040.01416.62
7.4.00.0030.01114.95
7.3.330.0000.00613.33
7.3.320.0090.00413.31
7.3.310.0070.00016.20
7.3.300.0030.00316.31
7.3.290.0000.00716.30
7.3.280.0060.01116.29
7.3.270.0040.01217.40
7.3.260.0030.01416.43
7.3.250.0090.01116.37
7.3.240.0000.01716.56
7.3.230.0130.00716.40
7.3.210.0100.00716.38
7.3.200.0180.00519.39
7.3.190.0060.00916.42
7.3.180.0130.00316.29
7.3.170.0070.01116.51
7.3.160.0160.00016.50
7.2.330.0140.00716.27
7.2.320.0100.00716.79
7.2.310.0160.00016.43
7.2.300.0120.00616.65
7.2.290.0130.00316.55
7.2.60.0030.01016.79
7.2.50.0060.00616.84
7.1.200.0030.00715.53
7.1.70.0000.00917.02
7.1.60.0100.01419.50
7.1.50.0070.01316.95
7.1.00.0070.07022.43
7.0.200.0170.01216.61
7.0.140.0000.03722.00
7.0.60.0070.08320.02
7.0.50.0070.03717.86
7.0.40.0100.08319.97
7.0.30.0330.07320.10
7.0.20.0330.07720.10
7.0.10.0330.07020.05
7.0.00.0100.06720.12
5.6.280.0100.06721.08
5.6.210.0130.07320.54
5.6.200.0070.05318.18
5.6.190.0070.08320.39
5.6.180.0200.04020.49
5.6.170.0300.07720.62
5.6.160.0200.08020.58
5.6.150.0100.04718.18
5.6.140.0100.04018.13
5.6.130.0130.07018.16
5.6.120.0100.08020.98
5.6.110.0070.06721.05
5.6.100.0070.07020.98
5.6.90.0070.04320.88
5.6.80.0100.07020.41
5.6.70.0170.04720.36
5.5.350.0130.04020.42
5.5.340.0030.05317.95
5.5.330.0100.08320.21
5.5.320.0070.04020.47
5.5.310.0170.05020.30
5.5.300.0070.08017.95
5.5.290.0070.08717.97
5.5.280.0070.07320.88
5.5.270.0130.08020.86
5.5.260.0100.05020.88
5.5.250.0070.08020.58
5.5.240.0130.07720.15
5.4.450.0130.04019.31
5.4.440.0200.03719.56
5.4.430.0130.04019.27
5.4.420.0130.04019.27
5.4.410.0200.03719.27
5.4.400.0170.04019.10
5.4.390.0200.03719.32
5.4.380.0230.06018.86
5.4.370.0270.05019.35
5.4.360.0100.06019.06
5.4.350.0170.05018.96
5.4.340.0270.07319.13
5.4.320.0330.06318.85
5.4.310.0170.08319.22
5.4.300.0200.07319.14
5.4.290.0200.07319.24
5.4.280.0170.05019.23
5.4.270.0300.06318.98
5.4.260.0270.06718.85
5.4.250.0270.06018.97
5.4.240.0200.03719.21
5.4.230.0300.06719.23
5.4.220.0300.06319.13
5.4.210.0170.04019.05
5.4.200.0130.05719.06
5.4.190.0330.06719.14
5.4.180.0270.05019.32
5.4.170.0270.07019.21
5.4.160.0230.05718.83
5.4.150.0370.03719.14
5.4.140.0300.06716.42
5.4.130.0200.07016.66
5.4.120.0270.06016.36
5.4.110.0300.04316.45
5.4.100.0230.04716.54
5.4.90.0200.07016.58
5.4.80.0200.07316.44
5.4.70.0230.06016.34
5.4.60.0300.06316.53
5.4.50.0230.06316.23
5.4.40.0230.07316.53
5.4.30.0230.05716.48
5.4.20.0230.05716.16
5.4.10.0230.04316.42
5.4.00.0230.03715.80
5.3.290.0270.07314.75
5.3.280.0300.07014.60
5.3.270.0330.06314.51
5.3.260.0200.07014.58
5.3.250.0130.04314.50
5.3.240.0230.06714.59
5.3.230.0130.05314.75
5.3.220.0230.04014.48
5.3.210.0270.05314.48
5.3.200.0200.05314.64
5.3.190.0230.04014.57
5.3.180.0170.07714.54
5.3.170.0170.04314.54
5.3.160.0230.07714.54
5.3.150.0230.05314.58
5.3.140.0200.07314.71
5.3.130.0330.06714.55
5.3.120.0200.06314.46
5.3.110.0270.06014.52
5.3.100.0230.07014.03
5.3.90.0270.05714.09
5.3.80.0300.05714.10
5.3.70.0300.06713.99
5.3.60.0200.03313.93
5.3.50.0300.07014.18
5.3.40.0300.06313.85
5.3.30.0230.05313.83
5.3.20.0170.04713.61
5.3.10.0230.06713.56
5.3.00.0270.07013.54
5.2.170.0100.03712.20
5.2.160.0200.04012.20
5.2.150.0200.05712.20
5.2.140.0270.03312.20
5.2.130.0200.02712.20
5.2.120.0200.06312.20
5.2.110.0170.06012.20
5.2.100.0270.05312.20
5.2.90.0230.05312.20
5.2.80.0270.06012.20
5.2.70.0230.03712.20
5.2.60.0230.06012.20
5.2.50.0170.06312.20
5.2.40.0200.04712.20
5.2.30.0330.03312.20
5.2.20.0230.05712.20
5.2.10.0170.05312.20
5.2.00.0200.04312.20
5.1.60.0170.04312.20
5.1.50.0200.05012.20
5.1.40.0230.03712.20
5.1.30.0130.04012.20
5.1.20.0200.05012.20
5.1.10.0270.03712.20
5.1.00.0200.04712.20
5.0.50.0070.03712.20
5.0.40.0130.03712.20
5.0.30.0100.04312.20
5.0.20.0070.03712.20
5.0.10.0070.04012.20
5.0.00.0070.06012.20
4.4.90.0100.03312.20
4.4.80.0070.04012.20
4.4.70.0100.01712.20
4.4.60.0170.02012.20
4.4.50.0070.03712.20
4.4.40.0130.04712.20
4.4.30.0100.03312.20
4.4.20.0170.01712.20
4.4.10.0130.02312.20
4.4.00.0130.05012.20
4.3.110.0130.02312.20
4.3.100.0030.02712.20
4.3.90.0070.02312.20
4.3.80.0130.02712.20
4.3.70.0030.02312.20
4.3.60.0070.03712.20
4.3.50.0070.03712.20
4.3.40.0130.03712.20
4.3.30.0030.02312.20
4.3.20.0030.03312.20
4.3.10.0030.03312.20
4.3.00.0000.03012.20

preferences:
68.12 ms | 401 KiB | 5 Q