3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const B = "test"; } var_dump(defined("A::B")); var_dump(defined("A::C"));

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.0120.00318.18
8.3.50.0110.00417.91
8.3.40.0070.00718.59
8.3.30.0110.00418.50
8.3.20.0040.00420.21
8.3.10.0050.00323.66
8.3.00.0040.00419.38
8.2.180.0030.01418.37
8.2.170.0000.01422.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00721.96
8.2.120.0060.00326.35
8.2.110.0030.00619.31
8.2.100.0150.00017.66
8.2.90.0000.00918.92
8.2.80.0000.00819.31
8.2.70.0030.00717.50
8.2.60.0000.00717.91
8.2.50.0000.00818.10
8.2.40.0040.00420.42
8.2.30.0040.00419.13
8.2.20.0040.00417.91
8.2.10.0020.00517.86
8.2.00.0040.00418.01
8.1.280.0200.00025.92
8.1.270.0000.00722.15
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0080.00417.64
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00817.22
8.1.190.0090.00017.11
8.1.180.0050.00318.10
8.1.170.0040.00418.27
8.1.160.0030.00318.69
8.1.150.0040.00418.64
8.1.140.0000.00717.48
8.1.130.0040.00418.94
8.1.120.0030.00417.21
8.1.110.0040.00417.29
8.1.100.0070.00017.20
8.1.90.0000.00717.30
8.1.80.0060.00317.21
8.1.70.0000.00717.35
8.1.60.0000.00817.46
8.1.50.0050.00317.38
8.1.40.0000.00717.41
8.1.30.0000.00817.53
8.1.20.0070.00017.42
8.1.10.0030.00617.36
8.1.00.0050.00317.34
8.0.300.0000.00718.77
8.0.290.0030.00516.58
8.0.280.0070.00018.23
8.0.270.0070.00017.07
8.0.260.0060.00318.30
8.0.250.0040.00416.83
8.0.240.0070.00016.83
8.0.230.0030.00316.70
8.0.220.0030.00316.77
8.0.210.0030.00316.65
8.0.200.0060.00016.82
8.0.190.0000.00916.68
8.0.180.0000.00816.78
8.0.170.0060.00316.77
8.0.160.0050.00216.76
8.0.150.0040.00416.58
8.0.140.0000.00716.69
8.0.130.0030.00313.25
8.0.120.0070.00016.70
8.0.110.0070.00016.57
8.0.100.0000.00716.55
8.0.90.0070.00016.64
8.0.80.0120.00316.69
8.0.70.0000.00816.60
8.0.60.0050.00216.63
8.0.50.0040.00416.79
8.0.30.0110.00616.97
8.0.20.0120.00817.40
8.0.10.0000.00716.99
8.0.00.0090.00816.72
7.4.330.0020.00215.55
7.4.320.0060.00016.47
7.4.300.0030.00316.28
7.4.290.0030.00316.42
7.4.280.0050.00516.27
7.4.270.0070.00016.38
7.4.260.0030.00316.30
7.4.250.0040.00416.18
7.4.240.0000.00616.36
7.4.230.0030.00316.34
7.4.220.0000.00716.32
7.4.210.0070.01416.37
7.4.200.0030.00316.57
7.4.160.0070.00916.43
7.4.150.0080.00917.40
7.4.140.0070.01317.86
7.4.130.0030.01416.28
7.4.120.0100.00916.43
7.4.110.0080.00816.34
7.4.100.0130.00316.50
7.4.90.0090.00816.35
7.4.80.0160.00419.39
7.4.70.0150.00316.40
7.4.60.0140.00316.36
7.4.50.0050.00716.38
7.4.40.0150.00616.46
7.4.00.0080.01014.88
7.3.330.0030.00313.19
7.3.320.0030.00312.94
7.3.310.0030.00316.14
7.3.300.0000.00716.08
7.3.290.0070.01216.18
7.3.280.0080.00616.15
7.3.270.0130.01017.40
7.3.260.0120.00616.20
7.3.250.0100.00616.31
7.3.240.0120.00916.22
7.3.230.0030.01316.35
7.3.210.0070.01016.32
7.3.200.0130.00316.36
7.3.190.0110.00616.46
7.3.180.0100.00616.41
7.3.170.0070.01016.13
7.3.160.0080.00816.25
7.3.120.0090.01214.70
7.3.110.0090.00614.49
7.3.100.0030.01314.67
7.3.90.0030.01414.64
7.3.80.0070.01014.59
7.3.70.0050.00514.73
7.3.60.0040.00814.75
7.3.50.0000.01414.61
7.3.40.0080.00814.60
7.3.30.0090.00314.75
7.3.20.0070.01016.41
7.3.10.0060.00716.43
7.3.00.0080.00816.53
7.2.330.0060.01016.50
7.2.320.0140.00416.50
7.2.310.0060.00916.29
7.2.300.0000.01616.47
7.2.290.0030.01316.51
7.2.250.0030.01514.73
7.2.240.0130.00714.87
7.2.230.0120.00614.57
7.2.220.0090.00615.04
7.2.210.0060.01214.87
7.2.200.0030.01014.42
7.2.190.0090.00614.75
7.2.180.0000.01214.72
7.2.170.0080.00714.46
7.2.130.0040.01216.65
7.2.120.0060.00916.68
7.2.110.0130.00716.42
7.2.100.0030.01016.68
7.2.90.0090.00616.68
7.2.80.0130.00316.81
7.2.70.0100.00716.87
7.2.60.0060.00916.85
7.2.50.0000.01516.81
7.2.40.0100.00016.70
7.2.30.0110.00816.85
7.2.20.0000.01616.61
7.2.10.0130.00817.14
7.2.00.0330.00816.96
7.1.330.0070.00715.51
7.1.320.0030.01015.52
7.1.310.0040.01515.66
7.1.300.0090.00315.57
7.1.290.0100.00715.57
7.1.280.0040.01115.74
7.1.270.0080.00415.67
7.1.260.0060.00615.59
7.1.250.0050.00315.87
7.1.200.0070.00415.61
7.1.130.0100.01416.35
7.1.120.0190.00616.37
7.1.110.0230.00916.05
7.1.100.0130.01015.71
7.1.90.0180.00715.68
7.1.80.0160.01015.80
7.1.70.0150.00915.29
7.1.60.0320.01133.20
7.1.50.0330.00332.58
7.1.40.0380.00632.48
7.1.30.0300.01032.56
7.1.20.0260.01332.70
7.1.10.0140.00714.42
7.1.00.0140.00714.63

preferences:
53.39 ms | 400 KiB | 5 Q