3v4l.org

run code in 500+ PHP versions simultaneously
<?php class G { public function generate($code): string { $now =new Datetime('now'); return $now->format('dmyhmi').$code; } } $g = new G; var_dump($g->generate('abc'));

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.5.30.0030.00517.64
8.5.20.0080.00919.62
8.5.10.0080.01219.58
8.5.00.0130.00920.08
8.4.180.0120.01019.88
8.4.170.0110.01023.69
8.4.160.0140.00823.95
8.4.150.0100.00216.83
8.4.140.0090.01217.43
8.4.130.0140.00817.91
8.4.120.0050.00422.47
8.4.110.0110.00922.26
8.4.100.0110.01017.98
8.4.90.0060.00318.43
8.4.80.0110.01019.66
8.4.70.0060.00618.00
8.4.60.0050.00518.61
8.4.50.0120.00720.30
8.4.40.0160.00319.60
8.4.30.0140.00620.72
8.4.20.0060.01319.90
8.4.10.0160.00319.62
8.3.300.0120.00720.78
8.3.290.0110.00818.44
8.3.280.0100.01120.20
8.3.270.0090.01416.66
8.3.260.0120.00716.66
8.3.250.0100.00818.88
8.3.240.0130.01116.54
8.3.230.0110.00916.58
8.3.220.0100.00817.12
8.3.210.0130.00718.50
8.3.200.0030.00616.67
8.3.190.0100.00917.10
8.3.180.0080.01116.63
8.3.170.0090.00617.41
8.3.160.0070.01116.70
8.3.150.0130.00720.94
8.3.140.0000.00817.12
8.3.130.0040.00418.67
8.3.120.0070.00319.00
8.3.110.0030.00920.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0060.00317.97
8.3.70.0120.00316.88
8.3.60.0080.01518.56
8.3.50.0060.00824.53
8.3.40.0030.01319.09
8.3.30.0070.00718.70
8.3.20.0050.00320.69
8.3.10.0080.00020.20
8.3.00.0040.00422.50
8.2.300.0120.00918.25
8.2.290.0040.00520.29
8.2.280.0120.00718.39
8.2.270.0110.00717.26
8.2.260.0060.00316.51
8.2.250.0040.00416.80
8.2.240.0070.00017.07
8.2.230.0050.00322.58
8.2.220.0100.00737.54
8.2.210.0080.00026.77
8.2.200.0070.00318.29
8.2.190.0090.01216.88
8.2.180.0070.01416.50
8.2.170.0090.00622.96
8.2.160.0200.00022.18
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.01526.16
8.2.120.0040.00426.16
8.2.110.0090.00022.30
8.2.100.0120.00017.72
8.2.90.0030.00617.73
8.2.80.0040.00418.87
8.2.70.0050.00318.04
8.2.60.0030.00618.16
8.2.50.0000.00918.10
8.2.40.0000.00819.38
8.2.30.0070.00019.23
8.2.20.0000.00718.12
8.2.10.0040.00420.92
8.2.00.0000.00819.10
8.1.340.0110.01120.03
8.1.330.0040.00423.82
8.1.320.0110.00916.16
8.1.310.0090.00920.02
8.1.300.0000.00820.17
8.1.290.0030.00718.88
8.1.280.0120.00625.92
8.1.270.0000.00820.73
8.1.260.0190.00026.35
8.1.250.0040.00828.09
8.1.240.0080.00023.97
8.1.230.0110.00019.53
8.1.220.0070.00017.74
8.1.210.0030.00618.77
8.1.200.0000.01017.48
8.1.190.0030.00617.47
8.1.180.0040.00419.02
8.1.170.0040.00418.71
8.1.160.0050.00219.12
8.1.150.0040.00418.82
8.1.140.0040.00422.13
8.1.130.0000.00720.20
8.1.120.0040.00417.63
8.1.110.0000.00717.55
8.1.100.0040.00717.67
8.1.90.0000.00817.65
8.1.80.0030.00717.68
8.1.70.0020.00517.50
8.1.60.0000.01217.65
8.1.50.0030.00617.54
8.1.40.0040.00417.59
8.1.30.0040.00417.79
8.1.20.0000.00717.74
8.1.10.0000.00817.63
8.1.00.0040.00417.64
8.0.300.0000.00818.77
8.0.290.0000.00916.88
8.0.280.0050.00318.37
8.0.270.0070.00317.23
8.0.260.0030.00320.02
8.0.250.0000.00917.13
8.0.240.0000.00617.17
8.0.230.0050.00216.98
8.0.220.0080.00317.07
8.0.210.0030.00417.14
8.0.200.0030.00317.11
8.0.190.0030.00617.11
8.0.180.0040.00417.09
8.0.170.0040.00617.01
8.0.160.0050.00216.98
8.0.150.0090.00016.98
8.0.140.0030.00316.96
8.0.130.0030.00313.31
8.0.120.0030.00617.01
8.0.110.0040.00417.08
8.0.100.0040.00416.90
8.0.90.0080.00016.91
8.0.80.0060.00917.05
8.0.70.0040.00417.04
8.0.60.0040.00416.95
8.0.50.0070.00016.98
8.0.30.0070.01117.45
8.0.20.0130.00617.42
8.0.10.0050.00316.97
8.0.00.0060.01217.07
7.4.330.0060.00015.55
7.4.320.0030.00316.53
7.4.300.0030.00316.63
7.4.290.0080.00016.73
7.4.280.0060.00316.63
7.4.270.0030.00316.57
7.4.260.0020.00213.26
7.4.250.0070.00016.70
7.4.240.0040.00416.72
7.4.230.0070.00016.71
7.4.220.0020.00616.55
7.4.210.0120.00316.65
7.4.200.0000.00716.53
7.4.130.0140.00316.59
7.4.120.0070.01016.75
7.4.110.0070.01016.60
7.4.100.0060.01316.59
7.4.90.0030.01716.53
7.4.80.0040.01319.39
7.4.70.0030.01416.85
7.4.60.0070.01016.85
7.4.50.0060.00816.55
7.4.40.0000.01716.69
7.4.00.0090.00915.15
7.3.330.0070.00416.39
7.3.320.0000.00613.36
7.3.310.0050.00316.36
7.3.300.0050.00316.38
7.3.290.0060.01016.37
7.3.280.0180.00416.36
7.3.260.0100.00716.63
7.3.240.0090.01016.51
7.3.230.0150.00616.53
7.3.210.0160.00016.37
7.3.200.0070.00716.67
7.3.190.0080.00816.52
7.3.180.0140.00316.45
7.3.170.0090.00916.50
7.3.160.0090.00616.39
7.3.120.0100.00814.90
7.3.110.0060.01014.93
7.3.100.0080.00914.75
7.3.90.0110.00514.67
7.3.80.0100.00814.80
7.3.70.0070.00614.77
7.3.60.0080.00514.84
7.3.50.0090.00814.69
7.3.40.0120.00414.73
7.3.30.0110.00614.86
7.3.20.0090.00615.49
7.3.10.0070.01015.38
7.3.00.0070.00915.43
7.2.330.0030.01316.80
7.2.320.0130.00316.61
7.2.310.0140.00316.83
7.2.300.0070.01116.69
7.2.290.0120.00416.58
7.2.250.0120.00814.96
7.2.240.0100.00815.21
7.2.230.0060.01015.08
7.2.220.0100.00714.84
7.2.210.0100.00815.04
7.2.200.0060.00915.03
7.2.190.0070.01014.87
7.2.180.0090.00914.92
7.2.170.0050.01215.03
7.1.330.0090.00714.62
7.1.320.0090.01014.56
7.1.310.0080.00814.63
7.1.300.0070.00514.47
7.1.290.0110.00814.58
7.1.280.0100.00714.66
7.1.270.0080.00814.54
7.1.260.0080.01014.44

preferences:
46.32 ms | 1407 KiB | 5 Q